package com.jellyfishumbrella.GL.Primitives;
/*
import static org.lwjgl.opengl.GL11.GL_POLYGON;

import java.util.ArrayList;

import com.jellyfishumbrella.GL.MeshGL;
import com.jellyfishumbrella.GL.PolygonGroup;
import com.jellyfishumbrella.GL.Vector3d;
import com.jellyfishumbrella.GL.Vertex;

public class Cube extends MeshGL {
	public PolygonGroup	topGroup	= new PolygonGroup();
	public PolygonGroup	bottomGroup	= new PolygonGroup();
	public PolygonGroup	frontGroup	= new PolygonGroup();
	public PolygonGroup	backGroup	= new PolygonGroup();
	public PolygonGroup	leftGroup	= new PolygonGroup();
	public PolygonGroup	rightGroup	= new PolygonGroup();

	public Cube(double size) {
		super();
		glMode = GL_POLYGON;

		double halfSize = 1.0;// size / 2.0;

		synchronized (polyGroups) {
			polyGroups.add(topGroup);
			polyGroups.add(bottomGroup);
			polyGroups.add(frontGroup);
			polyGroups.add(backGroup);
			polyGroups.add(leftGroup);
			polyGroups.add(rightGroup);
		}

		ArrayList<Vertex> top = new ArrayList<Vertex>();
		top.add(new Vertex(halfSize, halfSize, -halfSize));
		top.add(new Vertex(-halfSize, halfSize, -halfSize));
		top.add(new Vertex(-halfSize, halfSize, halfSize));
		top.add(new Vertex(halfSize, halfSize, halfSize));

		ArrayList<Vertex> bottom = new ArrayList<Vertex>();
		bottom.add(new Vertex(-halfSize, -halfSize, -halfSize));
		bottom.add(new Vertex(halfSize, -halfSize, -halfSize));
		bottom.add(new Vertex(halfSize, -halfSize, halfSize));
		bottom.add(new Vertex(-halfSize, -halfSize, halfSize));

		ArrayList<Vertex> front = new ArrayList<Vertex>();
		front.add(new Vertex(-halfSize, -halfSize, halfSize));
		front.add(new Vertex(halfSize, -halfSize, halfSize));
		front.add(new Vertex(halfSize, halfSize, halfSize));
		front.add(new Vertex(-halfSize, halfSize, halfSize));

		ArrayList<Vertex> back = new ArrayList<Vertex>();
		back.add(new Vertex(halfSize, -halfSize, -halfSize));
		back.add(new Vertex(-halfSize, -halfSize, -halfSize));
		back.add(new Vertex(-halfSize, halfSize, -halfSize));
		back.add(new Vertex(halfSize, halfSize, -halfSize));

		ArrayList<Vertex> left = new ArrayList<Vertex>();
		left.add(new Vertex(-halfSize, halfSize, -halfSize));
		left.add(new Vertex(-halfSize, -halfSize, -halfSize));
		left.add(new Vertex(-halfSize, -halfSize, halfSize));
		left.add(new Vertex(-halfSize, halfSize, halfSize));

		ArrayList<Vertex> right = new ArrayList<Vertex>();
		right.add(new Vertex(halfSize, -halfSize, -halfSize));
		right.add(new Vertex(halfSize, halfSize, -halfSize));
		right.add(new Vertex(halfSize, halfSize, halfSize));
		right.add(new Vertex(halfSize, -halfSize, halfSize));

		this.addPolygon(topGroup, top);
		this.addPolygon(bottomGroup, bottom);
		this.addPolygon(frontGroup, front);
		this.addPolygon(backGroup, back);
		this.addPolygon(leftGroup, left);
		this.addPolygon(rightGroup, right);

		this.keyframes.here.scale = new Vector3d(size, size, size);

		// finalize();
		setRefreshFlags(true, true);
	}
	public Cube(Vector3d ltf, Vector3d rbb) {
		super();
		glMode = GL_POLYGON;

		synchronized (polyGroups) {
			polyGroups.add(topGroup);
			polyGroups.add(bottomGroup);
			polyGroups.add(frontGroup);
			polyGroups.add(backGroup);
			polyGroups.add(leftGroup);
			polyGroups.add(rightGroup);
		}

		double xMin = ltf.x;
		double xMax = rbb.x;
		double yMin = ltf.y;
		double yMax = rbb.y;
		double zMin = ltf.z;
		double zMax = rbb.z;

		ArrayList<Vertex> top = new ArrayList<Vertex>();
		top.add(new Vertex(xMax, yMax, zMin));
		top.add(new Vertex(xMin, yMax, zMin));
		top.add(new Vertex(xMin, yMax, zMax));
		top.add(new Vertex(xMax, yMax, zMax));

		ArrayList<Vertex> bottom = new ArrayList<Vertex>();
		bottom.add(new Vertex(xMin, yMin, zMin));
		bottom.add(new Vertex(xMax, yMin, zMin));
		bottom.add(new Vertex(xMax, yMin, zMax));
		bottom.add(new Vertex(xMin, yMin, zMax));

		ArrayList<Vertex> front = new ArrayList<Vertex>();
		front.add(new Vertex(xMin, yMin, zMax));
		front.add(new Vertex(xMax, yMin, zMax));
		front.add(new Vertex(xMax, yMax, zMax));
		front.add(new Vertex(xMin, yMax, zMax));

		ArrayList<Vertex> back = new ArrayList<Vertex>();
		back.add(new Vertex(xMax, yMin, zMin));
		back.add(new Vertex(xMin, yMin, zMin));
		back.add(new Vertex(xMin, yMax, zMin));
		back.add(new Vertex(xMax, yMax, zMin));

		ArrayList<Vertex> left = new ArrayList<Vertex>();
		left.add(new Vertex(xMin, yMax, zMin));
		left.add(new Vertex(xMin, yMin, zMin));
		left.add(new Vertex(xMin, yMin, zMax));
		left.add(new Vertex(xMin, yMax, zMax));

		ArrayList<Vertex> right = new ArrayList<Vertex>();
		right.add(new Vertex(xMax, yMin, zMin));
		right.add(new Vertex(xMax, yMax, zMin));
		right.add(new Vertex(xMax, yMax, zMax));
		right.add(new Vertex(xMax, yMin, zMax));

		this.addPolygon(topGroup, top);
		this.addPolygon(bottomGroup, bottom);
		this.addPolygon(frontGroup, front);
		this.addPolygon(backGroup, back);
		this.addPolygon(leftGroup, left);
		this.addPolygon(rightGroup, right);

		//this.keyframes.here.scale = new Vector3d(size, size, size);

		// finalize();
		setRefreshFlags(true, true);
	}
}
*/
